package fun._6742.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Map;

@Data
@ApiModel(value = "ConfirmOrderRequest",description = "提交订单请求")
public class ConfirmOrderRequest {

    /**
     * 订单id
     */
//    private Long id;

    /**
     * 商品id-数量
     */
    @ApiModelProperty(value = "key-value: 商品id-数量",notes = "从购物车获取，数量不超过购物车中的数量")
    private Map<Long, Integer> productIdAndNums;

    /**
     * 支付方式
     */
    @ApiModelProperty(value = "支付方式",example = "",required = false)
    private String payType;

    /**
     * 客户端类型
     */
    @ApiModelProperty(value = "客户端类型",example = "",required = false)
    private String clientType;

    /**
     * 地址id
     */
    @ApiModelProperty(value = "地址id")
    private Long addressId;

    /**
     * 总价
     */
    @ApiModelProperty(value = "总价格")
    private BigDecimal totalAmount;

    /**
     * 实际支付的价格
     */
    @ApiModelProperty(value = "实际价格，暂时设置与总价格一致")
    private BigDecimal payAmount;

    /**
     * 防止重复
     */
//    private String token;
}
